//
//  ShowPhotoViewController.m
//  Diary
//
//  Created by lanou3g on 15/12/23.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "ShowPhotoViewController.h"
#import "VIPhotoView.h"
#import "PhotoViewController.h"
@interface ShowPhotoViewController ()

@property (nonatomic,strong) PhotoViewController *photoVC;


@end

@implementation ShowPhotoViewController



- (void)viewDidLoad {
    [super viewDidLoad];
   
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithTitle:@"相册" style:UIBarButtonItemStylePlain target:self action:@selector(leftItemAction)];
    self.navigationItem.leftBarButtonItem = leftItem;
    
   
    
    VIPhotoView *photoView = [[VIPhotoView alloc] initWithFrame:self.view.bounds andImage:self.photo1];
    photoView.autoresizingMask = (1 << 6) -1;
//    [self.view addSubview:photoView];
   
    self.view = photoView;
    
    
    
    
}

- (void)leftItemAction{
    
    [self dismissViewControllerAnimated:YES  completion:nil];
    
}




@end
